package com.ruoyi.merchant.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * SKU DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SkuDTO {
    /** 规格项组合 */
    @NotBlank(message = "规格项组合不能为空")
    private String specItems;

    /** 售价 */
    @NotNull(message = "售价不能为空")
    private BigDecimal price;

    /** 市场价 */
    private BigDecimal marketPrice;

    /** 库存 */
    @NotNull(message = "库存不能为空")
    private Integer stock;

    /** 排序 */
    private Integer sortOrder;
}